package com.team7.happycommunity.personcentor.controller;

import com.team7.happycommunity.personcentor.entity.PersonCollectUser;
import com.team7.happycommunity.personcentor.service.PersonCollectUserService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (PersonCollectUser)表控制层
 *
 * @author makejava
 * @since 2020-03-22 21:19:30
 */
@RestController
@RequestMapping("personCollectUser")

public class PersonCollectUserController {
    /**
     * 服务对象
     */
    @Resource
    private PersonCollectUserService personCollectUserService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PersonCollectUser selectOne(Integer id) {
        return this.personCollectUserService.queryById(id);
    }

}